package org.cpoy.ei.session;

import org.cpoy.eims.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("studentPreviousAcadDetailsList")
public class StudentPreviousAcadDetailsList extends
		EntityQuery<StudentPreviousAcadDetails> {

	private static final String EJBQL = "select studentPreviousAcadDetails from StudentPreviousAcadDetails studentPreviousAcadDetails";

	private static final String[] RESTRICTIONS = {
			"lower(studentPreviousAcadDetails.courseName) like lower(concat(#{studentPreviousAcadDetailsList.studentPreviousAcadDetails.courseName},'%'))",
			"lower(studentPreviousAcadDetails.instName) like lower(concat(#{studentPreviousAcadDetailsList.studentPreviousAcadDetails.instName},'%'))",
			"lower(studentPreviousAcadDetails.decription) like lower(concat(#{studentPreviousAcadDetailsList.studentPreviousAcadDetails.decription},'%'))", };

	private StudentPreviousAcadDetails studentPreviousAcadDetails = new StudentPreviousAcadDetails();

	public StudentPreviousAcadDetailsList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public StudentPreviousAcadDetails getStudentPreviousAcadDetails() {
		return studentPreviousAcadDetails;
	}
}
